import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listBatch(query) {
  return request({
    url: '/review/batch/list',
    method: 'get',
    params: query
  })
}

// 查询评审 批次信息
export function getReviewUserDetails() {
  return request({
    url: '/review/batch/ReviewUserDetails',
    method: 'get'
  })
}

export function getBatchList() {
  return request({
    url: '/review/batch/BatchList',
    method: 'get'
  })
}

export function getReviewList() {
  return request({
    url: '/review/batch/ReviewList',
    method: 'get'
  })
}

export function saveBatchAndReviewUsers(query) {
  return request({
    url: '/review/batch/saveBatchAndReviewUsers',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getBatch(batchId) {
  return request({
    url: '/review/batch/' + batchId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addBatch(data) {
  return request({
    url: '/review/batch',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateBatch(data) {
  return request({
    url: '/review/batch',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delBatch(batchId) {
  return request({
    url: '/review/batch/' + batchId,
    method: 'delete'
  })
}
